<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
	<title>收支明细</title>
	<!-- 引入Mui -->
	<link rel="stylesheet" href="css/mui.min.css">
	<!-- 引入公共样式 -->
    <link rel="stylesheet" href="css/public.css">
    <style>
        #top_tab li{
            line-height: 3;
            color: #333;
        }
        #top_tab .mui-active{
            color: #007aff;
        }
        #slider h4{
            font-size: 14px;
            font-weight: 300;
        }
        #slider p{
            font-size: 12px;
        }
        #slider h5 span{
            font-size: 14px;
            font-weight: 600;
        }
    </style>
</head>
<body>
    <!-- 头部 -->
	<header id="header" class="mui-bar mui-bar-nav">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
        <h1 class="mui-title">收支明细</h1>
    </header>
    <!-- 头部 结束 -->
    <div class="mui-content mui-scroll-wrapper">
        <div class="mui-scroll">
            <!-- tab 列表开始 -->
            <div class="mui-slider" id="slider">
                <div class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted" id="top_tab">
                    <li class="mui-control-items mui-col-xs-6 mui-inline mui-active">任务佣金</li>
                    <li class="mui-control-items mui-col-xs-6 mui-inline">推广佣金</li>
                </div>
                <div class="mui-slider-progress-bar mui-col-xs-6"></div> <!--选项卡滑动条-->
                <div class="mui-slider-group" id='tab_content'>
                    <div class="mui-slider-item mui-control-content mui-active">
                        <ul class="mui-table-view mui-table-view-striped mui-table-view-condensed">
                            <li class="mui-table-view-cell">
                                <div class="mui-table">
                                    <div class="mui-table-cell mui-col-xs-10">
                                        <h4>任务ID: 4396</h4>
                                        <h5>金额:<span class="mui-badge-danger mui-badge-inverted">100.11</span>元</h5>
                                        <p class="time">2018-11-11 11:11:12</p>
                                    </div>
                                </div>
                            </li>
                            <li class="mui-table-view-cell">
                                <div class="mui-table">
                                    <div class="mui-table-cell mui-col-xs-10">
                                        <h4>任务ID: 4396</h4>
                                        <h5>金额:<span class="mui-badge-danger mui-badge-inverted">100.11</span>元</h5>
                                        <p class="time">2018-11-11 11:11:12</p>
                                    </div>
                                </div>
                            </li>
                            <li class="mui-table-view-cell">
                                <div class="mui-table">
                                    <div class="mui-table-cell mui-col-xs-10">
                                        <h4>任务ID: 4396</h4>
                                        <h5>金额:<span class="mui-badge-danger mui-badge-inverted">100.11</span>元</h5>
                                        <p class="time">2018-11-11 11:11:12</p>
                                    </div>
                                </div>
                            </li>
                        </ul>
                    </div>
                    <div class="mui-slider-item mui-control-content">
                        <ul class="mui-table-view mui-table-view-striped mui-table-view-condensed">
                            <li class="mui-table-view-cell">
                                <div class="mui-table">
                                    <div class="mui-table-cell mui-col-xs-10">
                                        <h4>用户ID: 43967 </h4>
                                        <h5>金额:<span class="mui-badge-danger mui-badge-inverted">100.11</span>元</h5>
                                        <h5>会员等级: 100.11 </h5>
                                        <p class="time">2018-11-11 11:11:12</p>
                                    </div>
                                </div>
                            </li>
                            <li class="mui-table-view-cell">
                                <div class="mui-table">
                                    <div class="mui-table-cell mui-col-xs-10">
                                        <h4>用户ID: 43967 </h4>
                                        <h5>金额:<span class="mui-badge-danger mui-badge-inverted">100.11</span>元</h5>
                                        <h5>会员等级: 100.11 </h5>
                                        <p class="time">2018-11-11 11:11:12</p>
                                    </div>
                                </div>
                            </li>
                            <li class="mui-table-view-cell">
                                <div class="mui-table">
                                    <div class="mui-table-cell mui-col-xs-10">
                                        <h4>用户ID: 43967 </h4>
                                        <h5>金额:<span class="mui-badge-danger mui-badge-inverted">100.11</span>元</h5>
                                        <h5>会员等级: 100.11 </h5>
                                        <p class="time">2018-11-11 11:11:12</p>
                                    </div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <!-- tab 列表结束 -->
        </div>
    </div>
    <script src="js/jquery.min.js"></script>
    <script src="js/mui.min.js"></script>
    <script src="js/doT.js"></script>
    <!-- 以上引入第三方插件 -->
    <script>
        // 页面初始化
        mui.init();
        //初始化 mui 顶部 tab 效果
		mui('#slider').slider({
			interval:0 // slider间隔时间
		});
        //实现鼠标点击切换效果
        $('#top_tab li').click(function(){
            var gallery = mui('#slider');
            $('#top_tab li').removeClass('mui-active')
            $(this).addClass('mui-active')
            gallery.slider().gotoItem($(this).index())
        });
        // 动态添加 top_tab 的 active
        document.querySelector('#slider').addEventListener('slide', function(event) {
            var index = event.detail.slideNumber;
            $('#top_tab li').removeClass('mui-active');
            $('#top_tab li').eq(index).addClass('mui-active')
        });
    </script>
</body>
</html>